import request from '../utils/request';

export function searchIndiShJgfx({ sdate, edate }) {
    var data = new FormData()
    data.append('sdate', sdate)
    data.append('edate', edate)
    return request(`/api/restricted/IndiShJgfx/search`, {
        method: 'POST',
        body: data,
    });
}

export function searchIndiShZcbh({ sdate, edate }) {
    var data = new FormData()
    data.append('sdate', sdate)
    data.append('edate', edate)
    return request(`/api/restricted/IndiShZcbh/search`, {
        method: 'POST',
        body: data,
    });
}

export function searchCunm({ acno, bano }) {
    var data = new FormData()
    data.append('acno', acno)
    data.append('bano', bano)
    return request(`/api/restricted/flow/custname`, {
        method: 'POST',
        body: data,
    });
}

export function createYgsq({ daoName, values }) {
    var data = new FormData()
    data.append('Entity', JSON.stringify(values))
    return request(`/api/ygsq/create/${daoName}`, {
        method: 'POST',
        body: data,
    });
}

export function pasEdit({ sysuserid, email }) {
    var data = new FormData()
    data.append('sysuserid',sysuserid)
    data.append('email',email)
    return request(`/api/update/pasEdit`, {
        method: 'POST',
        body: data,
    });
}

export function getLrycMaxdryf({ nf }) {
    var data = new FormData()
    data.append('NF',nf)
    return request(`/api/restricted/lryc/maxdryf`, {
        method: 'POST',
        body: data,
    });
}

export function setMnlrYc({ yf }) {
    var data = new FormData()
    data.append('yf',yf)
    return request(`/api/restricted/lryc/setMnlrYc`, {
        method: 'POST',
        body: data,
    });
}

export function JjTzsd({ ny }) {
    var data = new FormData()
    data.append('NY',ny)
    return request(`/api/restricted/JjTzsd`, {
        method: 'POST',
        body: data,
    });
}
export function JjTzjs({ ny }) {
    var data = new FormData()
    data.append('NY',ny)
    return request(`/api/restricted/JjTzjs`, {
        method: 'POST',
        body: data,
    });
}
export function Jjyjtz({ key, emid }) {
    var data = new FormData()
    data.append('key',key)
    data.append('emid',emid)
    return request(`/api/restricted/Jjyjtz`, {
        method: 'POST',
        body: data,
    });
}


export function JjTzsd2({ ny }) {
    var data = new FormData()
    data.append('NY',ny)
    return request(`/api/restricted/JjTzsd2`, {
        method: 'POST',
        body: data,
    });
}
export function JjTzjs2({ ny }) {
    var data = new FormData()
    data.append('NY',ny)
    return request(`/api/restricted/JjTzjs2`, {
        method: 'POST',
        body: data,
    });
}

export function Jjyjtz2({ key, emid }) {
    var data = new FormData()
    data.append('key',key)
    data.append('emid',emid)
    return request(`/api/restricted/Jjyjtz2`, {
        method: 'POST',
        body: data,
    });
}

export function Bxtztz({ key,zjhm }) {
    var data = new FormData()
    data.append('key',key)
    data.append('zjhm',zjhm)
    return request(`/api/restricted/Bxtztz`, {
        method: 'POST',
        body: data,
    });
}


